// import { Navigate } from 'react-router-dom'
import Login from '@/views/Login/index'
import Layout from '@/views/Layout/index'
const viewRoutes = [
  {
    path: '/login',
    name: '登录',
    exact: true,
    id: 10000,
    element: <Login />
  },
  {
    path: '/',
    name: 'Layout',
    exact: true,
    id: 10001,
    element: <Layout />,
    // children: [
    //   {
    //     path: '/',
    //     element: < Navigate to="/layout/a" />
    //   },
    //   {
    //     path: '/layout/a',
    //     element: <div>aaa</div>
    //   },
    //   {
    //     path: '/layout/b',
    //     element: <div>bbb</div>
    //   }
    // ]
  }
]

export default viewRoutes
